package com.tech.controller;

import java.util.Map;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.dubbo.config.annotation.Reference;
import com.tech.response.BaseResponse;
import com.tech.service.TbItemCatService;

/**
* @Title TbItemCatController.java
* @Description TODO
* @author willard
* @date 2018年12月8日 下午9:01:40
* @version V1.0
*/
@RestController
@RequestMapping("/itemCat")
public class TbItemCatController {
    
    @Reference
    private TbItemCatService itemCatService;
    
    @RequestMapping("/getmenuList")
    public BaseResponse<Map<String, Object>> getmenuList(){
        Map<String, Object> map = itemCatService.getMenuList();
        BaseResponse<Map<String, Object>> baseResponse = new BaseResponse<>();
        baseResponse.putSuccess(map);
        return baseResponse;
    }

}
